{$CLEO .cs}

0A8C: write_memory 7635043 size 4 value -1869574000 virtual_protect 1 
0A8C: write_memory 7635047 size 1 value 144 virtual_protect 1 


32@ = 1000
//038D: draw_texture 6 position 325.0 225.0 size 300.0 200.0 RGBA 255 255 255 255    normal pos.
if
$onmission == 1
then
0ACA: show_text_box "Multiplayer mode is not active while your on a ~r~mission~w~!"

end_thread
end


0826: enable_hud 0
0581: enable_radar 0
0ACA: show_text_box "Select a multiplayer map."

01B4: set_player $PLAYER_CHAR can_move 0


0390: load_txd_dictionary 'battle'

038F: load_texture "car_parking" as 1 // Load dictionary with 0390 first
038F: load_texture "warehouse" as 2 // Load dictionary with 0390 first
038F: load_texture "prison_hall" as 3 // Load dictionary with 0390 first
038F: load_texture "subway" as 4 // Load dictionary with 0390 first
038F: load_texture "airport2" as 5 // Load dictionary with 0390 first
038F: load_texture "gang_house" as 6 // Load dictionary with 0390 first
038F: load_texture "test" as 0 // Load dictionary with 0390 first


wait 0
:SWITCH_PLAYER2_AI
03F0: enable_text_draw 1 
03E0: draw_text_behind_textures 1
///038E: draw_box_position 320.0 224.0 size 9999.0 9999.0 RGBA 0 0 0 180

//
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 0 position 325.0 225.0 size 900.0 900.0 RGBA 0 0 0 180 
 
//gosub @CANCEL
0494: get_joystick 0 data_to 3@ 4@ 5@ 6@

wait 0
if  and
32@ >= 500
00E1:   player 0 pressed_key 0
then
if
3@ > 5
then
00BE: text_clear_all

018C: play_sound 1052 at 0.0 0.0 0.0
30@ += 1
32@ = 0
end
end
if
00E1:   player 0 pressed_key 0
then
0494: get_joystick 0 data_to 3@ 4@ 5@ 6@
if and
32@ >= 500
5 > 3@
then
00BE: text_clear_all

018C: play_sound 1052 at 0.0 0.0 0.0
30@ -= 1
32@ = 0
end
end

:BEGIN_PICK
if
00E1:   player 0 pressed_key 15  //00E1:   player 0 pressed_key 15 //enter

then
018C: play_sound 1053 at 0.0 0.0 0.0
//0ACB: show_text_highpriority "Exited" time 3500

:jump
0391: release_textures
01B4: set_player $PLAYER_CHAR can_move 1
00BE: text_clear_all
0826: enable_hud 1
0581: enable_radar 1

end_thread
end


:PICK

if  and
32@ >= 500
30@ == 0
then
03F0: enable_text_draw 1 
03E0: draw_text_behind_textures 1
038D: draw_texture 1 position 325.0 225.0 size 300.0 200.0 RGBA 255 255 255 255 

0ACB: show_text_highpriority "~w~Carparking Lot" time 500 7

if
00E1:   player 0 pressed_key 16  //00E1:   player 0 pressed_key 15 //enter
then

////////////////////////$PLAYER_CHAR model_to #NULL
0A94: start_custom_mission "battle_maps\carparking_lot"
018C: play_sound 1052 at 0.0 0.0 0.0
jump @jump

end
end

if  and
32@ >= 500
30@ == 1
then  
03F0: enable_text_draw 1 
03E0: draw_text_behind_textures 1
038D: draw_texture 2 position 325.0 225.0 size 300.0 200.0 RGBA 255 255 255 255 

0ACB: show_text_highpriority "~w~The Warehouse" time 500 7
  
if
00E1:   player 0 pressed_key 16  //00E1:   player 0 pressed_key 15 //enter
then
0A94: start_custom_mission "battle_maps\the_warehouse"

018C: play_sound 1052 at 0.0 0.0 0.0
jump @jump
end
end
if    and
32@ >= 500
30@ == 2
then  
03F0: enable_text_draw 1 
03E0: draw_text_behind_textures 1
038D: draw_texture 3 position 325.0 225.0 size 300.0 200.0 RGBA 255 255 255 255 

0ACB: show_text_highpriority "~w~The Prison Hallway" time 500 7
  
if
00E1:   player 0 pressed_key 16  //00E1:   player 0 pressed_key 15 //enter
then
////////////////////////$PLAYER_CHAR model_to #NULL
018C: play_sound 1052 at 0.0 0.0 0.0
0A94: start_custom_mission "battle_maps\prison_hall"
jump @jump                             
end
end


if  and
32@ >= 500
30@ == 3
then  
03F0: enable_text_draw 1 
03E0: draw_text_behind_textures 1
038D: draw_texture 4 position 325.0 225.0 size 300.0 200.0 RGBA 255 255 255 255 

0ACB: show_text_highpriority "~w~Georiga Streets: Subway" time 500 7
  
if
00E1:   player 0 pressed_key 16  //00E1:   player 0 pressed_key 15 //enter
then
////////////////////////$PLAYER_CHAR model_to #NULL
018C: play_sound 1052 at 0.0 0.0 0.0
0A94: start_custom_mission "battle_maps\subway_notrains"  

jump @jump
end
end

if   and
32@ >= 500
30@ == 4
then  
03F0: enable_text_draw 1 
03E0: draw_text_behind_textures 1
//03E3: set_texture_to_be_drawn_antialiased 1
//0ACB: show_styled_text 0@v time 1000 style 4
0ACB: show_text_highpriority "~w~Metalport: Airport" time 500 7
038D: draw_texture 5 position 325.0 225.0 size 300.0 200.0 RGBA 255 255 255 255 
  
if
00E1:   player 0 pressed_key 16  //00E1:   player 0 pressed_key 15 //enter
then
0391: release_textures

00BE: text_clear_all
player.CanMove(0) = true
018C: play_sound 1052 at 0.0 0.0 0.0
0A94: start_custom_mission "battle_maps\airport_part1"
wait 1
0A94: start_custom_mission "battle_maps\airport_part2"
wait 1
0A94: start_custom_mission "battle_maps\airport_part3"
0826: enable_hud 1
0581: enable_radar 1
end_thread 
////////////////////////$PLAYER_CHAR model_to #NULL

jump @jump
end
end
if   and
32@ >= 500
30@ == 5
then  
03F0: enable_text_draw 1 
03E0: draw_text_behind_textures 1
038D: draw_texture 6 position 325.0 225.0 size 300.0 200.0 RGBA 255 255 255 255 

0ACB: show_text_highpriority "~w~Metalport: Gang House" time 500 7
  
if
00E1:   player 0 pressed_key 16  //00E1:   player 0 pressed_key 15 //enter
then
0A94: start_custom_mission "battle_maps\gang_houses"
018C: play_sound 1052 at 0.0 0.0 0.0
jump @jump

end
end

:Exceeded
if
30@ == -1
then
30@ = 0

end
if
30@ == 6
then
30@ = 5

end
jump @SWITCH_PLAYER2_AI


end_thread
//:CANCEL

//return